package com.joysuch.wwyt.patrol.mapper;

import com.joysuch.wwyt.patrol.entity.PatrolUnfinishTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jodconverter.local.office.utils.Lo;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author heqifeng
 * @since 2022-03-01
 */
@Repository
public interface PatrolUnfinishTaskMapper extends BaseMapper<PatrolUnfinishTask> {

    /**
     * 物理删除
     * @param taskId
     * @return
     */
    Integer deleteByTaskId(Long taskId);

    List<Long> getExpiredTsakIds(Date currDate);

    void deleteByTaskIds(@Param("taskIds") List<Long> taskIds);

    Integer batchInsert(@Param("list") List<PatrolUnfinishTask> unfinishTaskList);
}
